<%@page import="Tools.Tools"%>
<%@page import="dao.impl.UsersDao"%>
<%@page import="bean.Users"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css/css.css" media="all" />
</head>
<body>
	<h1><a  href="updatePwd.jsp">修改我的密码</a>欢迎${info}</h1>	
	<h1>用户管理</h1>
	<%-- <c:set value="${count%pageSize==0?count/pageSize:count/pageSize+1 }" var="end "/>
	<a href="GetUsersPage?pageIndex=1&pageSize=10">首页</a>&nbsp;
	<a href="GetUsersPage?pageIndex=${pageIndex==1?1:pageIndex-1 }&pageSize=10">上一页</a>&nbsp;
	<a href="GetUsersPage?pageIndex=${pageIndex==end?end:pageIndex+1 }&pageSize=10">下一页</a>&nbsp;
	<a href="GetUsersPage?pageIndex=${end }">尾页</a> --%>
	

	<table border="1">
		<thead>
			<th>编号</th>
			<th>姓名</th>
			<th>密码</th>
			<th>角色</th>
			<th>操作</th>
		</thead>
		<tbody>
			
			<c:forEach var="info"  items="${list }">
					<tr>
					<td>${info.id }</td>
					<td>${info.name }</td>
					<td>${info.pwd }</td>
					<td>${info.rinfo.name }</td>
					<td>
					<a href="DeleteUsersById?id=${info.id}&pageIndex=${pageIndex}">删除</a> 
					<a href='UpdateUsersById?id=${info.id}&pageIndex=${pageIndex}'>编辑</a>
					</td>
					</tr>
			</c:forEach>
		
			
		</tbody>
	</table>
		${pageMsg }
</body>
</html>
